<?php
require('includes/top.php');

$user_id = $_POST['user_id'];
$emp_fname = $_POST['emp_fname'];
$emp_lname = $_POST['emp_lname'];
$card_no = $_POST['card_no'];
$modelname_array = explode('-',$card_no);
echo $card_no;

$sql = "UPDATE accessories SET `card_no` = '".$card_no."' where user_id='".trim($user_id)."' and accessories_name='Data card'";
$result=mysql_query($sql);


if($result>0)
{
header('Location: user_datacard_details.php?v=success');
}
else
{
header('Location: user_datacard_details.php?v=err');
}
?>